package follow.pratice.in2020.November.demo;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

/**
 * @Author tu zy
 * @Date 2020/11/30 16:41
 * @Version 1.0
 */
public class Case_2 {
    public static void main(String[] args) {
        Map<String, Object> map = new HashMap<>();
        map.put("juc",2);
        map.put("juc1",2);
        map.put("juc2",3);
        List<Map> maps = new ArrayList<>();
        maps.add(map);
        for (Map map1:maps) {
            map1.remove("juc2");
        }
        System.out.println(maps);

        List<Map> juc1 = maps.stream().filter(map2 ->
                map2.containsKey("juc1")).collect(Collectors.toList());
        System.out.println("1111");

    }
}
